package com.atguigu.meiju;

public enum Week {
    //省略了 public static final  Week
    MONDAY("星期一"), //调用有参构造创建的对象
    TUESDAY(), //空()可以省略，表示调用无参构造创建的对象
    WEDNESDAY,
    THURSDAY,
    FRIDAY,
    SATURDAY,
    SUNDAY;

    private final String description;

    Week() {
        description = "xx";
    }

    Week(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return super.toString() +"=" + description;
    }
}
